package io.gitee.yxsnake.tenant.datasource.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: snake
 * @create-time: 2024-10-10
 * @description:
 * @version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tenant_datasource")
public class Datasource implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String tenantKey;

    private Integer tenantType;

    private String url;

    private String username;

    private String password;

    private Boolean active;

    private Date createdTime;

    private Date updatedTime;

}
